package com.citycloud.ccuap.tc.admin.entity;


import com.citycloud.ccuap.framework.service.Model;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mybatis.annotations.Column;
import org.springframework.data.mybatis.annotations.Condition;
import org.springframework.data.mybatis.annotations.Entity;
import org.springframework.data.mybatis.annotations.Id;
import org.springframework.data.mybatis.annotations.Id.GenerationType;

/**
 * 项目（站点）菜单和角色关联对象
 * @author sufeng
 *
 */
@Data
@NoArgsConstructor
@Entity(table = "sys_project_rel_app")
public class SysProjectRelApp implements Model {
	private static final long serialVersionUID = 1L;

	@Id(strategy = GenerationType.AUTO)
	@Column(name = "obj_id")
	@Condition
	private Long objId;

	@Column(name = "project_id")
	@Condition
	private Long projectId;

	/**
	 * 应用类型，0-web应用，1-app应用
	 */
	@Column(name = "app_type")
	@Condition
	private Integer appType;

	@Column(name = "client_id")
	@Condition
	private String clientId;

	@Column(name = "project_type_id")
	@Condition
	private String projectTypeId;

}